<?php
$this->load->helper('form');
$attributes = array('onsubmit' => "log_in(); return false;");
echo form_open('#',$attributes);
?>
<div class='form-field'>Login :</div>
		<div><?php
		$data = array (
			'name' => 'login',
			'id' => 'login',
			'maxlength' => '30',
			'size' => '15'
		);
		echo form_input($data);
		?>
		</div>
	<div class='form-field'>Password :</div>
		<div><?php
		$data = array (
			'name' => 'password',
			'id' => 'password',
			'maxlength' => '30',
			'size' => '15',
			
		);
		echo form_password($data);
		?>
		</div>


		<span class='form-field'>Remember me :</span>
		<span><?php echo form_checkbox('autologin', 'ok', TRUE);?></span>

		<div class='form-field'>
		<?php echo form_submit('submit', 'Log in');?>
		</div>

<?php
echo form_close('');
?>
<br />
<a href="#" onclick="update_content('<?php echo site_url("user/add"); ?>'); ">Register</a>

